<?php
// ### FETCH MEMBERS PLUGIN ### //

include('class.members.php');
$members = new members();
$members->set_page($pageid);
$members->set_id($article);
$latestMembers = $members->get_latestMembers();
?>

<h3>Latest members</h3>
<ul class="members">
    <?php foreach($latestMembers as $member) { ?>
    <li>
        <img src="<?php print(DATA_PATH); ?>/images/profiles/<?php print(strtolower($member['userfolder'])); ?>/avatars/small/<?php print(strtolower($member['avatar'])); ?>" class="usravatar" alt="<?php print(ucfirst($member['username'])); ?>" title="<?php print(ucfirst($member['username'])); ?>" />
        <span class="time"><?php print($member['joined']); ?></span>
        <a href="page/7/profile/user/<?php print(strtolower($member['id'])); ?>/<?php print(strtolower($member['username'])); ?>" title="<?php print(ucfirst($member['username'])); ?>"><?php print(ucfirst($member['username'])); ?></a>
    </li>
    <?php } ?>
</ul>